package com.xjgc.msibase.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xjgc.msibase.entity.MsiServerRecordInfo;
import org.springframework.scheduling.annotation.Async;

import java.util.Date;

/**
 * 中间库服务记录明细
 *
 * @author: 小逗号
 * @date: 2023-11-2
 * @description:
 * @since:
 */
public interface IMsiServerRecordInfoService extends IService<MsiServerRecordInfo> {
    /**
     * 添加明细
     *
     * @param recordId
     * @param now
     * @param node
     * @param message
     */
    @Async
    void add(String recordId, Date now, MsiServerRecordInfo.Node node, String message);

    /**
     * 添加明细
     * @param recordId
     * @param now
     * @param node
     * @param message
     * @param dataTxt
     */
    void add(String recordId, Date now, MsiServerRecordInfo.Node node, String message,String dataTxt);

    /**
     * 添加明细
     *
     * @param recordId
     * @param now
     * @param node
     */
    @Async
    void add(String recordId, Date now, MsiServerRecordInfo.Node node);

}
